# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=cpufetch
pkgver=1.04
pkgrel=0
pkgdesc="simple yet fancy CPU architecture fetching tool"
url="https://github.com/Dr-Noob/cpufetch"
arch="x86_64 armhf armv7 aarch64" # x86 missing asm/hwcap.h
license="MIT"
options="!check" # no test
makedepends="linux-headers"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/Dr-Noob/cpufetch/archive/refs/tags/v$pkgver.tar.gz"

build() {
	make
}

package() {
	make DESTDIR="$pkgdir" install
	rm -rf "$pkgdir"/usr/share/licenses
}

sha512sums="
06c41439f033309ef31eafe576fb797d9f68900026ec2e01545a0ace0abdeb9dfa19865fe3aa3ab5f40ea1a5fb70ea672e114d5e65257ac04aa28a42acfdfb45  cpufetch-1.04.tar.gz
"
